package cn.zymall.goods.service.impl;

import cn.zymall.common.model.ServiceEnsure;
import cn.zymall.common.model.SpuServiceCenter;
import cn.zymall.goods.mapper.ServiceEnsureMapper;
import cn.zymall.goods.service.ServiceEnsureService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lxh
 * @Description 商品服务保证业务层接口实现类
 * @date 2020/8/20 10:11
 * @Classname ServiceEnsureServiceImpl
 **/
@Service
public class ServiceEnsureServiceImpl extends ServiceImpl<ServiceEnsureMapper, ServiceEnsure> implements ServiceEnsureService {

	@Autowired
	private ServiceEnsureMapper serviceEnsureMapper;

	@Override
	public List<ServiceEnsure> findAll() {
		return serviceEnsureMapper.findAll();
	}



	@Override
	public void addServiceCenter(SpuServiceCenter spuServiceCenter) {
		serviceEnsureMapper.addServiceCenter(spuServiceCenter);
	}

	@Override
	public void del(Integer id) {
		serviceEnsureMapper.del(id);
	}
}
